import request from "../utils/request"

export default {
    getUserList(page, size) {
        return request({
            url: `/user-manage/list/?page=${page}&size=${size}`,
            method: "GET",
            query: {
                page,
                size
            }
        })
    },
    getUserInfo(id) {
        return request({
            url: `/user-manage/detail/${id}`,
            method: "GET",
        })
    },
    getRoleList() {
        return request({
            url: '/role/list',
            method: "GET"
        })
    },
    getPermissionList() {
        return request({
            url: '/permission/list',
            method: "GET"
        })
    }
}